fixed the results controller