fix deleted thread & counts