Fix bug for Laravel 4.0