location: fix ensure
Merge pull request #517 from radford/fix-location-ensure

location: fix ensure