Fixed adding not existing keys and not changing anything if the file is up to date.