Perhaps you could share some more of your code? I've done some research and there was a bug found in 2006, but other than that, there's been a couple reports of this, but it's always been fixed by adjusting the code (adding a beauty check here or there).