Fixed a bug causing time to pass at ~double rate.