bugfix rename_doc