Forgot to change sessionStorage to LocalStorage in some cases