Issue #11 resolved partially.

- When using pointer instead of copy of object it is working
- Check what couse this behaviour