fix createArrayOfIntegers(), off by one