Minor fixes

- Typo fixes
- WROG_ATTRIBUTES => WRONG_ATTRIBUTES
- remove unused var.