Fix duplicate code and typo.
1 file changed