Fix java.lang.ArrayIndexOutOfBoundsException for ValueSchema