fix query param parsing