fix signal disconnect bug.