I Am Fred makes late surge to snatch victory