Fixed warning - double to float conversion.