fixing localstorage record thing