Fixing NameError bug that references class attr without self.