Influence of topology on the scale setting