Fixed bug when analysis