This episode is a mashup of S04E01, "The Time Travel Enigma" and S01E12, "The Truth Behind Parallel Universes".