Forum:Remus Lupin's death

Hello Harry Potter fans!

When I read here about Remus Lupin, I observed that, at The Battle of Hogwarts he was killed by death eater Antonin Dolohov...How could that be, when, in the previous film, Hermione Granger wiped Dolohov's memory in that coffee - house?