fixed bug with search (getTopicsByTids became error-first)