I would think there are multiple potential causes, but first I think a little clarification is in order. Are you referring to changing assist modes, or shifting gears?
If it’s the assist modes, I can’t be if any help. If it’s the gearing, the first thing I’d check is whether the cable needs to be tightened, as they will stretch or loosen over time.