fixed collapsePanelsKey var ref