- fixed bug when no callback is given