fixed bug when computing tree/shrub/herbaceous mean c