a quick fix on a query