Fixed some hooks
and a typo in plugin.yml