Fixed ApiException in client