fix for location template