SetInterval, dist: fix bugs