Fix opts.port argument passing