fix service restarting