small fix for handling Infinite values in floating point variables.