fix apiMaxRetries = 3