fix setInterval issue