fixed Hook.register's intendations