Time Squad

Time Squad is an American animated television series created by Dave Wasson for Cartoon Network, and the 10th of the network's Cartoon Cartoons. It follows the adventures of a trio of hapless "time cops" who travel back in time attempting to correct the course of history. The series premiered during "Cartoon Cartoon Summer" on June 8, 2001 and ended on November 26, 2003, airing 26 episodes in total. Wasson described the series as "a C- student's guide to history".

The Island of Dr. Freud (Season 1, Episode 5)
The Time Squad must go back to the year 1899 to convince Sigmund Freud to stop hypnotizing his patients and making them act like animals, and to get him analyzing their dreams instead.