fix pausing logic