Fixes bug 1267526, API fixed
Merge pull request #79 from ikhudoshyn/bug/1267526

Fixes bug 1267526, API fixed