fixing bug for copying config to slaves