"Которых" is in the accusative rather than genitive, because it is a direct object of "испортил".
Cf.:
Человек, которого я видел, уже ушёл. ("Человек" in the nom., "которого" in the acc.)
Человеку, которого я видел, ничего не досталось. ("Человеку" in the dative, "которого" in the acc.)
С человеком, которого я видел, никто не говорил. ("Человеком" in the instrumental, "которого" in the acc.)
Etc., etc. Regardless of the case of the word "человек" in the above sentences, "которого" is in the accusative in each and every case, because it is a direct object of "видел".