Fixed segfault when attempting to create a new settings file