Hey,
I just had a very similar issue and found the solution after a few hours of banging my head. After looking at your code, I think my solution would work for you too
In the above example, after you call the save method, add the line:
x.Position = 0;
Hope that helps guys...