fixed an error in the startup refrector-agent