Fix windows last id storage