rollback adding hooks in patch