diff --git a/src/bin/kmerclust.R b/src/bin/kmerclust.R
index 201bd0b531df86f9c14a4bb69f2c5e4d784de211..fdfc4f9ae96bc8aada5c9db70f6efbe7afc52e09 100644
--- a/src/bin/kmerclust.R
+++ b/src/bin/kmerclust.R
@@ -1,5 +1,6 @@
 library(kmerclust)
+args <- commandArgs(trailingOnly = TRUE)
 print(args)
 load(file = paste0(args[1], ".Rdata"))
-res <- compare_models(count, nboot = args[2] * 2, bootsize = nrow(count), core = as.numeric(args[2]))
+res <- compare_models(count, nboot = as.numeirc(args[2]) * 2, bootsize = nrow(count), core = as.numeric(args[2]))
 save(res, file = paste0(args[1], "_boot_", args[3], ".Rdata"))