His attitude change is best explained by Cognitive Dissonance Theory
Cognitive Dissonance Theory is best explained in this way:
Have you ever told a lie and feel uncomfortable because you see yourself as an honest person? It is then that you realize that you have experienced cognitive dissonance.
Or,
You see yourself as a smart person but can't even believe that you made such dumb stock investments!