Added crude fix for half-precision infinity bug.