Correct typo preffered to preferred

Correct typo: preffered -> preferred and checkPreffered -> checkPreferred