fix empty query string