fix thread service pause bug