Fix typo and remove unused method