fixed chart loader bug