Fix syntax errors in extension classes