rewrite sessionStorage bug fixed