Fixed missed import and misspelled variable.