Fixed port argument handling.