God created our souls in God's image and likeness.  Not our bodies.  What you are calling a 'mistake' has been going on for eons.  God has also created animals which have the  'same-sex' orientation.  And this has been demonstrated in hundreds of thousands of scientific experiments.
This is seen in every species of animal on the planet. 
Our 'official' church has done very little to demonstrate that when it teaches anything about the human body, that it does so demonstrating the very highest level of biological understanding ABOUT the subject it is presenting.

Sorry to tell you, but the Bible is not a: book about history, biology, molecular science, astrophysics, etc.  The Bible is not about demonstrated evidence.  The Bible is about faith and love.  Unfortunately, when it comes to homosexuals, trans-gender persons---too many Christians/Catholics demonstrate that they don't understand the faith and love part at all.