Fix for adding panel.
gen_panel_name now works correctly.