fix double to float transition