Bug fix for unspecified parameters in query builder