Fix a NameError on supported versions