Fix bug where queries *required* params