Fix bug interval = 0