fix chart sum error