fix typos and sed (x) sequences