"Которых" is in the accusative rather than genitive, because it is a direct object of "испортил".
Cf.:
Человек, которого я видел, уже ушёл. ("Человек" in the nom., "которого" in the acc.)...