Fixing routing bugs in filtering