fix maxBarValue
not updated in a timely manner
#35
+3
−2
maxBarValue
not updated in a timely manner
#35