Fix copy mode can't get revision correctly