session bugfixing