Fixed session bug