Fixed obvious issues in _threading.