fix query params issue