Fix 3d graph