error bar fixes and improvements