fix filter bug