ArrayIndexOutOfBounds when migrating to new file format