diff --git a/data/index.html b/data/index.html
index 8a366cc..5f08726 100644
--- a/data/index.html
+++ b/data/index.html
@@ -4,4 +4,4 @@ get-modifiers:
-lib (+force) : use custom svg-lib
-short : linked (png only)
-abs : absolut values instead of rounded
--mode=last + num=[x] : dispolay last x hours
+-mode=last + num=[x] : display last x hours
diff --git a/function.php b/function.php
index 1d5259a..6f95566 100644
--- a/function.php
+++ b/function.php
@@ -65,7 +65,7 @@ function logStats($datas,$type,$alt=false,$outlineAlt=0,$mode=1){
$unit=getUnit($type);
$stat=$timePoints=array();
if($alt===false){
- if(is_array($data[$num])){
+ if(is_array($datas[$num])){
$stat=dataStat($datas[$num],$type);
$timePoints=outLinedLogPoints($datas[$num]);
}else{