fix localStorage has undefined\-undef