fix the commute data to be only 3 types per period