fixed a bug in when tsm::service_manage is true