Fixing bug in adjust biomass function