Yeah, she replaced memories of Kairi, but I doubt she took the time to replace every one of Sora's 14 years worth of memories.
Because Namine made him remember Kairi. She still didn't restore all of his memories yet, so some the chains were still broken.
Everyone started to remember him again...