fixed some scan_topics related stuff