Fix timer crash.