Bug fix for Laravel 4.1.x