Fix used of undefined function
Merge pull request #39 from Domisys/fix-unused-function

Fix used of undefined function