fix typos and errors