If you are posting that in an effort to show some kind of contradiction, it is futile. St. Thomas was referring to the external intention which is sufficient to provide moral certainty of validity of the internal intention, whereas the condemnation of Alexander was referring to an internal intention contrary to the rite performed, the very thing which you claim is irrelevant. According to the text cited above, it is relevant and can invalidate a Sacrament even while performing a rite approved by the Church.