Fixed a bug in TrendingItemInserter.