Oh well, I just thought that maybe there was some sort of common newbie mistake I might be doing here that I wasn't aware of, but apparently not, thanks anyway.
Bugs often hide in that tiny virtual space between what we think we've written and what the code actually does.
So I suggest you let us take a look at your code