Revert "port is no more a pointer, avoid bug"

This reverts commit c092e0c388aef02c7779b6ccb4d45f6bb7adb2d9.