fix for OutOfBound exception in copyarray - v108