minor fix for auto start agent service