Fixes reading configuration from local storage

Fixes #1282