code cleanup to make it possible sometimes not to delete a file when field is changed
typo fix