Fix bug in url filtering