fix error with numeric inputs