fix filter condition