fix querystring parameters on connection