Error converting MaxNumber to double: Input string was not in a correct format.