Fix bug of area footer was 4.
Fix textIndex calculation mistake when areaIndex != 1.