Can you post the code for the library?

The problem must lie there.

Regards