Fix condition on done().