fix api to server