fix broken after each hook