Fixed a bug in analysis