should fix a session bug