Fixed a bug in the realtime timer.