fixed deprecated directives