fixed the derive graph