.done(): fix error throwing