It only happened once to me which was a few weeks ago. We were maintaining the STAR using Vnav then we were asked for a speed by ATC so opened up the speed window (fma correct with vnav spd) to allow for this, then as we were slowing for flaps with the window still open when the fma changed to Vnav Pth and accelerated to catch the profile. Thanks for the reply