stringstream version of hex to int, not working