Fix broken API call