is_streaming was assigned at wrong place