Fix startup of agent services