Corrected return value of filter