Fix timer callback