Fix logical errors in checking the incarnation.