Hayden later testified as a friendly witness for HUAC.
See, he changed his mind, he liked his money better than the politics.
But in the 60s he repudiated his friendly testimony and took the Strangelove role in part to zing and satirize anti-Communists.