Fix arraycopy