fix 3d mode switch on/off issue