reverting to previous state after pausing