bug fix for integer range validation check