fixing bug in simulated falures