Fixed potential NameError