Fixed error in reading in simulation data