fix filter photos bug