Fix typo and therefor fixing some unused variables

I really don't like unused variables :(