bug fix: did not call done when file.length === 0