Fix for CakePHP 2.4.x