fix query params bug