Fixing callback undefined problem
Merge pull request #12 from anas-ambri/fix-callback-crash

Fixing callback undefined problem