fix deprecation macro