I don't know.

Can you paste some actual code, it's difficult to spot any problems when just working with my imagination.