fixed broken querystring construction