fix digit->num