fixed Thread that it exit successfully