fixed bug in session store