fix bug in getTopics with white and blacklist