fix call to clearInterval