fix filter behavior