Fix for port()