I thank you both for your efforts to help me out, and I apologize for wasting your time.
This has got absolutely nothing to do with wasting someones time. Sometimes you're blind when looking at your own code and just need a small push in the right direction. Today it was you, tomorrow it will be me. Besides: your problem description was very precise and clear and that is already half the way to go.