Fixed variable name.
Fixed all the linter warnings.