diff --git a/api/api_functions.py b/api/api_functions.py
index f26c7832f28c1fccd83cd642b2adc00a8072d0ed..ac062a00533b32a5ec680dd85d42787cd334d422 100644
--- a/api/api_functions.py
+++ b/api/api_functions.py
@@ -120,7 +120,7 @@ def get_dataset_all(page):
 def get_files_all(page):
     result = get_files(page)
 
-    if result["code"] == "SUCCESS":
+    if result["code"] == "SUCCESS" or result["code"] == "EMPTY":
         return make_response(jsonify(result), 201)
 
     return make_response(jsonify(result), 400)
diff --git a/db/datasets.db b/db/datasets.db
index eeba65c40f296f0d252099feb31be301a5ad58b8..e25a539924a328ecd136ce8770ddc7cebc8b941e 100644
Binary files a/db/datasets.db and b/db/datasets.db differ
diff --git a/main.py b/main.py
index 9837e3badaace26a1e9e6a6b773808b65f2a9a05..eccf0b1e24fb6de1fff906faeda6e5c0ea739271 100644
--- a/main.py
+++ b/main.py
@@ -120,7 +120,7 @@ def getdataset():
 def getfiles():
 
     request_data = request.get_json()
-    page = request_data['dataset_id']
+    page = request_data['page']
     result = get_files_all(page)
 
     return result
\ No newline at end of file