Added stacked bar. Fixed some bugs with bar