fixed filtering error