Fix typo causing NameError