copy fix from https://github.com/bllim/laravel4-datatables-package