Fixed a small bug in the query analysis controller.