bugfix: when callback is not defined