fix api settings