some fixes to simple 3d

some fixes to simple 3d