fix digit "zero" problem