Fix empty query string