Correct error of path in maincontroller.php