minor fixes to 3d