fixbug: switch content crash.