fix streamloop