It happens! If you're writing thousands of words you're occasionally going to get the wrong one! Or a typo. Or a duplicate. You're lucky you caught it! I had a then/than typo on my editing page for *years* before anyone noticed. Me included! And that's my job!