Fix panel toggleCollapse