Remove alert from addHook.

Thanks to @tobibeer