Fix query string.