Hi noeska,
can you show us the actual routine?
We may be able to help you more.

cheers,
Paul