Solved bug at copy_component.cc