fix state change when press stop after injection