Fixes some BaseController metohd for PHP 5.3.10