He was already aware of the mismatch with data and his theory, and he didn't hesitate to put "Hand of God" to his work to explain it. : )
That a scientist had great contributions to science doesn't mean that s/he was a human being with her own dogmas and conflicts.