Fix broken tree (sp_error() undeclared).