Fix bug in API URL