fixed bug causing to copy only levels from last hierarchy