Fix calculation of tiles in tier