fix a very stupid bug in chord: arraycopy