Another fix for port creation