- fixed a query issue