fixed issue with storing session data