Fix the switch to wireframe mode on 3d demos.