fix chart edit bug