Fixed the localStorage bug.