Fixed checking for decimal points