Fixed setInterval and globalTick.