Fixed reading keys from local storage.