fix some bug on distributedconfigure