Fix typo and remove unnecessary code