fix issues localstorage