Fix: $hookmanager is a global object
Fix: wrong EOL