Fixed bug with SessionMemory!  Will add test cases later on!