fix an IndexOutOfBoundsException on startup