Fixed a syntax error a previous refactor caused
Use the after_initialize plugin since the default method is deprecated