* Fixed nz_remove_by_iter for non terminal cases