fixed bug with decimals