fixed a bug in get_location that was breaking on twitter