Fix type when renaming data to directives in init

Data was renamed to directives in init, but was missed in one place causing the script to fail.