Rule reminder
'Accorgersi' (to notice, to realize) is always followed by 'di': accorgersi di + noun/pronoun, or accorgersi di + infinitive (same subject). When the subjects differ, use 'accorgersi che + indicative'.
Mi sono accorto _____ errore nel documento.