fixed a bug to call the callback function properly
Merge pull request #5 from xissy/master

Fixed a bug