I had a very similar problem awhile back, where it worked fine manually, but didn't work otherwise, and debugging it showed it working right, my problem was that I had two different 'arg1's from 2 different places, not sure if thats the problem here, but maybe you should check that, just a thought
__________________
|