Fixed typo and removed an unncessary line of code