Fix after hook definition