fixed localStorage.slug issue