Fix setInterval invocation