runSimulationOnAWS.m bug fixed