Typo in init function

data should be directives in this change, it was renamed, but this line was missed.