Fixed a small bug caused by the renaming of QueriesController.