fixes #8: writing to simDB after retrieval from localStorage fails