Fix std::stoi exception

Created by  Eelco Dolstra  on March 8, 2017
HK2F7SKQJNQWMQM3WMEX5IQ2JW4UKMDSEQCZMJQE3QTNO7KLZFHAC
Change contents