Fix a bug with refresh of a context when you use "save as" feature