fix lack of a `done` function call and some typos