fixed unbound name bug when adding digits