$location could be unidentified without this
Merge pull request #2403 from huglester/patch-3

$location could be unidentified without this