fix issue #225 (number validation)