fix the 3d bugs
fix the 3d bugs