Alex,
Can you provide a test that reproduces the problem?I think that would simplify the analysis.
Frankly speaking I've not quite got what is the issue.Vladimir