fix indexing in building output area data