Solve chart bug