Fix setting port from cli