fixed bug invalid variable name when updating post parent