fix 3D view bug