fix after hook