Fix calculation of TileGroup directory.