Fix missed spelling
Removed unnecessary code