fixing bug in joinSession url parsing