fixed the collapsible breaking with repeated clicks