Small fix for port only (#4165).