fix accordion bug