fixed bug in function call
Merge pull request #325 from b97pla/master

fixed bug in function call