Fixed a bug in the analysis controller