Bug fix in getPanelData