patch for the namespace problem in add_error