a bug fix in stereo_match sample