fixing problem with query params