fixed chart-loading bug