Fixing interval count check.