fixing post hook