thread problem solved.

thread problem solved.