Fixed session set bug