diff --git a/includes/class-static_press_admin.php b/includes/class-static_press_admin.php
index c7ec841..ec1a76d 100644
--- a/includes/class-static_press_admin.php
+++ b/includes/class-static_press_admin.php
@@ -308,7 +308,8 @@ function static_press_fetch(){
ul.append('
' + file_count + ' : ' + this.static + '');
}
});
- $('html,body').animate({scrollTop: $('li:last-child', ul).offset().top},'slow');
+ if(ul.children().size() > 0)
+ $('html,body').animate({scrollTop: $('li:last-child', ul).offset().top},'slow');
if (response.final)
static_press_finalyze();
else