A bug solved in baseController.php