Fix 3D drawing