fixed intializing local storage