Fix bug in deleting store session.