fix glade startup bug