Fixed crashing when config file already exists