Fixed a nasty bug that caused events to load improperly.