fixed get-session bug