Fix bug where config overrides manual passing of location