Fixed a bug in tiers count