c_parent bugfix