fixing the bug which lower case the query strings