In Curse of the Black Pearl, Jack took a piece of the gold and he was put under the curse like the other pirates, right? So why weren't Will and Elizabeth ever under the curse?

Am I missing something here?