Wrong index in method 'copy' fixed