Fix inconsistent values and more configfile bugs