fixed bug in filtering
fixed bug in filtering