fixes problem with accordion