Fixed some problems when running repeated analyses.