fixed error on results.blade
fixed error in controller