Bug Fix

Fixed a bug fix in the summing of calculations for modelling