Fixed crash from graph3d destructor