Fix setting port in Session