Fixed calling a hook callback

- Implemented the new argument/return type system