Fixed errors arising from compiling FastSimulation