fix localStorage