Fixed a bug due to laravel 4.1.26