Fix config file with better logic