Fixed initializing local store issues.