Dealt with switch in 1.6 compiler in TUIDemo