Fixed a bug in the accordion toggling