Fixed broken repeated declaration of variable.  Fixed typo on variable
name.  Fixed spelling mistake.