Updated Inf and NaN parts of normalise function