Fix #93; computeMaxProduction to return correct amount.