fix old topics query error