Fix cpu consuming thread