Fix transmission rename when file already exists. fix #2765