Fix typo and remove unnecessary check.