Fixing accordion history