ThemeMagic: fix error when switch template (Language filter enable)