fixed chart bug