Fixed crucial bugs in GUI application

Fixed bugs related to the .config file.
A fatal error occurred when there was no .config file (first time
starting the GUI application).