Update first and last parameters of intervals, because they should be at same period like other values.