Corrected vale in interval check.