Fix bug that a value on localStorage is broken when it is reset