Error corrected in done()