correct maximum query string length