Fix the function used to register a class