Fixed crash in bar calculator.
v8