Fix a class scope error