Corrected a typo and removed some unused imports.