correct error created in 3.4.8. correctly make sure you never have a value less than one

resolve issue #193 . 
Do the math correctly before hand to insure the result will be a valid.