fix setting port with cli