I'm not aware of any issues with this code - and it's being used by SMW itself quite a bit, so ought to be working :)
Can you share the code you're writing? That'll make it a lot easier to figure out what's going on.
Jeroen De Dauw
Don't panic. Don't be evil.