Fix bug where static assignment was overriding configured location