Fixed a bug where events wouldn't occur if scheduled for over 1 million ...

...ticks