Fixed ArrayIndexOutOfBoundsException in BlockMap.