fix for collapsable panel in modal