fix false positive log message and clearInterval