some issues fixed.

- some issues that make the library unusable fixed.