Fixed bad computed values in History table and pie chart