fix the problem of still using chartElement at
some places.