fixed bug storing null session data