Fix bad integer/float validation