bugfix in filtering