postProcess hook is not called when modifying objects