Fixed totalsteps in emulator