Ensure setInterval is using an integer