Fix filters on search for locations

I've added comments on each section that's been changed.