fix crash with screen record