Fixing issue with API data loading.