Fix discontinuity