Fix renaming error (document infos were lost)