fix function that initializes cost estimates from YAML file.