Fix some precision issues