fix bugs about setting the session port