fix problem with strings being replaced by infinity.