fixes bug with query (missing comma)