Fix time range error.