Trying to solve problem when cloning