Fixed some precision loss warnings.