fix the query string is empty