solve numbers-only directive bug