Untested fix for Updatefile