api fix
Merge pull request #1 from pavels/master

Thx