Fix an error with writing out the properties file.