fix string to double bug