fixing chart bugs