Fixing path in API call