fix pausing demo in safari