fix for 2d to 3d graphics transitions