correct operator typo in queries in controllers