Fix an IndexOutOfBoundsException when using /mctop

Fixed #861