diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php
index 872f4c0..1f7850e 100644
--- a/system/codeigniter/CodeIgniter.php
+++ b/system/codeigniter/CodeIgniter.php
@@ -188,6 +188,11 @@
 }
 else
 {
+	if ($method == $class)
+	{
+		$method = 'index';
+	}
+
 	if ( ! method_exists($CI, $method))
 	{
 		show_404();