fixed monitorservice restart crash bug