I know this is several years later but... I ran into the same issue and was able to solve it by verifying the spacing between variables within original text file. For example, Item1, Item2, and Item3 had a single space between them while the numbers in each item had 5 spaces between them, resulting in a mismatch between r and tm. Hope this helps somebody. Chris