Fix thread and mutex