Fix use of add_to_base when adding error