fix for location URL setting