I have seen some sources claim that he had stopped his philandering ways after the scandal with Marilyn and also because of the tragic death of their newborn son in the summer before the assassination. Sometimes it takes scary times to wake someone up. Neither JFK nor Jackie had great role models in their fathers either while growing up.