fixed persistance localstorage problem