fix a parsing error with double.Maxvalue