Location valueOf fix