Fixes no `done` function.

Fixes undefined `done` error.