diff --git a/advagg_js_compress/advagg_js_compress.module b/advagg_js_compress/advagg_js_compress.module
old mode 100644
new mode 100755
index 6866a1a..4e4c1c8
--- a/advagg_js_compress/advagg_js_compress.module
+++ b/advagg_js_compress/advagg_js_compress.module
@@ -404,7 +404,7 @@ function advagg_js_compress_test_file($values = NULL) {
       echo $md5;
       exit;
     }
-    $data = advagg_get_file_data($filename_md5);
+    $data = advagg_get_file_data($md5);
 
     // Set to "-1" so if php bombs out, the file will be marked as bad.
     $data['advagg_js_compress']['tested']['jsminplus'] = -1;
