fixed getbatchinstance and slave