Fixing bug where duplicate filters were returned.