Fix incorrect querystring generation.