fixed problem with decimal numbers