Repair bug of 'popular' algorithm in stream.