Trending Api Fixes 

this will fix trending api bug