Bug fixed

Threadache corrected.