Fixed a missing num_topics bug.