Fixed localstorage issue.