location scope fix