solve bug on float numbers