Fix syntax errors in classes.