bug fix : callback omitted

When the callback function is omitted an empty callback function is
created