fixed an api error