Thread bug fixed.