Fix the query string log