fix pausing