Fixed serialize error in a sotre-session component.