fix float32 and float64