diff --git a/requirements.txt b/requirements.txt
index 7bae27d468feff13e92fab779412c9eb36eb93ac..823687696a672d8389b8707b232a016c211905a3 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
 Cython
-libbamutils @ git+https://gitlab.pasteur.fr/bli/libbamutils.git@66879fb7e917dfa00e13da230310bb3b257766db
+libbamutils @ git+https://gitlab.pasteur.fr/bli/libbamutils.git@a63cb65c3a078b6a5802a74df541da22bbc71c5c
 libworkflows @ git+https://gitlab.pasteur.fr/bli/libworkflows.git@b29b854ff1db6c87386007808286207b8af11b9d
 matplotlib
 networkx
diff --git a/scripts/bed_bam2fq.py b/scripts/bed_bam2fq.py
index 7f79369434f205a9e9f0cc9ec20a4e0ef917c57c..a4a38c0db9365b29f2dcd22cc4f7d5c6be18c6ef 100755
--- a/scripts/bed_bam2fq.py
+++ b/scripts/bed_bam2fq.py
@@ -47,7 +47,7 @@ def main():
     args = parser.parse_args()
 
     bamfile = BamFile(args.bamfile)
-    for fastq in bamfile.bed_to_fastq(args.bedfile):
+    for fastq in bamfile.bedfile_to_fastq(args.bedfile):
         print(fastq, end="")
     return 0
 
diff --git a/setup.py b/setup.py
index a39e8a69491ec5bf382119906aab6a26142a0471..d3d6680144f909418999dcbf446a130e799e0b4c 100644
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@ setup(
         "scripts/copypaste_bigwig_regions.py",
         "scripts/extract_annot_start.py"],
     install_requires=[
-        "libbamutils @ git+https://gitlab.pasteur.fr/bli/libbamutils.git@66879fb7e917dfa00e13da230310bb3b257766db",
+        "libbamutils @ git+https://gitlab.pasteur.fr/bli/libbamutils.git@a63cb65c3a078b6a5802a74df541da22bbc71c5c",
         #"libworkflows @ git+https://gitlab+deploy-token-31:isEzpsgbNf2sJMdUDy2g@gitlab.pasteur.fr/bli/libworkflows.git@744dd79b579577cb6e131653260d7990946be3ad#egg=libworkflows-0.1",
         #"libworkflows @ git+https://gitlab+deploy-token-31:isEzpsgbNf2sJMdUDy2g@gitlab.pasteur.fr/bli/libworkflows.git#egg=libworkflows-0.1",
         #"libworkflows @ git+https://gitlab+deploy-token-31:isEzpsgbNf2sJMdUDy2g@gitlab.pasteur.fr/bli/libworkflows.git",