Not all competitions with the away goals rule suffer from this anomaly, however: the Copa do Brasil has developed its rules to avoid some anomalies, such as the above. In that Cup, if two teams share either the same stadium or the same home town, neither is considered the home club and thus the away goals rule does not apply. This exception was seen, for example, in the 2006 final between Flamengo and Vasco, when both legs were played at the Maracanã Stadium.