fix api client