Fixed Whole Numbers

Fixed the problem with whole numbers crashing the program.