Delete obsolete lines and fix typo