fixed issue with falty query strings because of connect issue