Fixed nasty bug with wrong session being started