fixed localstorage issue