Bugfix in updating a file.