diff --git a/application/third_party/htmlcompressor/controllers/index_gm.php b/application/third_party/htmlcompressor/controllers/index_gm.php
index 48d9f4cf..5537aedb 100644
--- a/application/third_party/htmlcompressor/controllers/index_gm.php
+++ b/application/third_party/htmlcompressor/controllers/index_gm.php
@@ -315,7 +315,7 @@ class Index_gm extends CI_Controller
$css_content .= $get_http_temp;
}
- foreach ($html_object->find('style') as $style) {
+ foreach ($this->html_object->find('style') as $style) {
$css_content .= $style->innertext;
$style->outertext = '';
}