Map height calculation fixes.