Fix scope issue with accordion.