remove posthook