Fixed a long-time error when copying arrays into another array.