fix panel bug and init_script.