Fix small bug in filter