It is possible that there was a non-printable character in the data for the Temp variable and when you retyped it the character got overwritten. It could also be that some pointer was corrected while updating the variable and that cured the problem.
Glad it is working for you!
