Fix URL query processing