Fixed issue with garbage collection/stream splicing