Fixed thread-safety of the thread group!