fixed double restart bug and uncalled jump bug