The contraction rules cannot be used when it would make a problem with a prefix or suffix on the word. Also, some rules are flexible and may depend on the situation. So when the rules permit the same word to be written in more than one way, preference is given to "the contraction that is closer to the correct pronunciation."