fix inherited after hooks