[PLINK-201] - Fixing typo. Added some checks.