Even though Hera wiped his memory, Percy could still remember Annabeth because she wasn't in his mind she was in he's heart.

Memories
Even though Hera wiped his memory, Percy could still remember Annabeth because she wasn't in his mind she was in he's heart.