fixing ArrayIndexOutOfBoundsException
first compilation with rootbeer. it failed.