fixed error with loading YAML file