Bug fix for initializing local storage values