fix chart update