Fixed a syntax error and fixed some quirks with switching between the real-time and historical views.