[fixed #11] Clicking "+" on a bucket caused total amount and bucket amount to be NaN