ConfigParse not behaving correctly