fix pausing issues