Issue #143: fix "callback is not a function"