Fix callback sent to local function
Merge pull request #2 from timshadel/master

Fix callback