Fixed multiple calls to done()