post handler fix, clear parents from version before post