Fixed bug with non-object parameters to query retrieval