fix indexing bugs in accessing compute and fix labels in fix ave/histo
(cherry picked from commit 579c52771813fee513300bcc69505d1750db3eac)