fix the types of intervals