Fixed small session bug