fix deletion of streams