bugfix: prevent double invocation of the callback
1.0.1