Often it takes the churches a long while to see the errors of their ways. Ultimately they tend to get it right. Martin Luther's call for the use of modern languages in the place of Latin caused a terrible fuss. Galileo narrowly escaped burning as a heretic for teaching that the universe did not circle the earth. Some Protestant churches in South Africa claimed a scriptural basis for apartheid.
Nobody defends such wrongs today.
Usually the churches belatedly apologise. It concerns homosexuals. In May last year, two fine Catholics, Sister Jeannine Gramick and Father Robert Nugent, were prohibited from continuing their ministry to a gay and lesbian congregation in Maryland in the United States. They had done so for 20 years. Gramick and Nugent were told by their bishop that they must cease their ministry because they were not teaching the authentic doctrine of the church.