Small bug fix to barheight code.