The sacraments are not invalidated because of the character or the misinterpretation of the validly ordained clergy. The apostolic authority of the catholic and apostolic Church is not diminished by personal vices and failings of some of her members. Thank you for the clarifying this!
I wish you a blessed evening!