fix missing variable for chart object