fix wrong reference to the object from inside post hook