fix for reading the query string