Remove code for reappend element to parent