bugs in filtering