bug fixed:will not return after exit unless input again