fix 3d graph