fixed bug with pairs not removing