fix accordion variable issue