fix filter criteria