fix trending data retrieval