fix location config