I took your code and set it up in a test xlate. It seemed to work fine for me. How did you test yours? I did notice that when I ran it through my tester, if I ran it through using the xlate tester, it worked fine. If I ran it through my route tester, then I had to bounce the process before it worked correctly.
Hope this helps…
Thomas G. Rioux
The Methodist Hospital