Float conversion bug fix