thread-safety regression