fix bugs with previous commit using FloatType