Fixed clock thread issue.