fix references to error keyword