Fix UPnP infinite recursion