Fixes issue #17: the calculation is wrong after I press clear (AC)