Fix local storage init bug.