Don't fail with an ArrayIndexOutOfBoundsException when moving.