fix bug of total value.