Fixed a named query param issue