Fix typo and remove dead code.