fix swap ambiguity.