fix rounding issue in damage calculation. closes #2