fixes bug on query param.