Fix timer initialization