Issue #2852515 by dawehner, timmillwood: $interface is still set from the previous loop in tagged services compilation (cherry picked from commit bbd96cc9)