[stream] fix cache bug