fixed storing location with bad URL
Merge pull request #2997 from parallel588/master

fixed store location with bad URL