Repaired the findTopResults function