remove duplicate line, fix typo

Thanks for Ralf Herzog