have you tried setting breakpoints and stepping through the code to see where it's going and what it's doing?

-tg