Fixing Trending & Recent API bug

Fixed Trending & Recent API bug