Fix spelling issue and removed unwanted variable