fix loading YAML config