prevent the mFirstSetTickCount when restore instance
prevent index out of range when set max or min