fix float converting