fix yaml file creation