Fix missed casts to double