fix unsetted post_parent error