fixed black frame when pausing/resuming.