location parameter wasn't being used

Correct bug where location id paarameter wasn't being used