Fixed ligin session bug