fixed session storage bug.