Fix scope issue with accordion.

Fix scope issue on $destroy when removing accordions.