Fixed non-repitition of setInterval()