localStorage fix