fix layout switcher