Fixed wrong error messages if configs where load from file.