Typo in filter function corrected

Typo in filter function corrected