fixed insertion errors with timers