Fixed calling a registered function
Merge pull request #50 from hason/patch-2

Fixed calling a registered function