Fix initialization for config in localstorage