fix bug about threadCache