fix bug for batch delete