fix issue when sync streams