Correction for division by zero error that andres was seeing.  #244