Add missing return value from hooks.