fix segfault after close gui dailogs when config file not exist