Replaced stof by stod