Sum bug fix; have not tested for running yet