Fix for not saving project file after adding duplicated file