Fixed issue from #48

I make this fix for older barchart-udt version. I merged this fix to head. With old version this fix is working well. I'm not tried to build this - probably need little build fixes.