Fixed error while copying