fix bug
mainpanel confi