fix querydict_to_kwargs function