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