Fixed bug when moving from infinite analysis to other modes