Guard against infinite values