They had proven to themselves that they were not sexist or racist, but this left them vulnerable to what psychologists call moral licensing. When you do something good, you feel good about yourself. This means you’re more likely to trust your impulses—which often means giving yourself permission to do something bad.