[copy] handled hierarchy error for copying