Fix error where use function would have obj. instead of function as callback.