Fixed an issue with the way the state of the accordion was stored