fix check of numbers