Fix algorithm issue for stereo->stereo