Bug Fix

r_value, which stores the value of the BarData at a certain index,
should be double type.