timing fix for collapse_panel hide