fix a dead thread exception;