Some style in join session
Fixed an ugly bug in assigning a session