Fix problem with JSONStore not saving to disk