3d to 2d bug