Major bug fix

Bug "Decimal number bigger than 1 is invalid" now fixed.