Fix segfault when writing config with hashratio built in