fix batch remove bug