Trip filtering is not working accordingly