Fix the bug with accordion elements