Fixed a bug with the selection of "top" documents for a topic.