Fixed bug where the accordion wasn't being refreshed