fix typos and add permode=fraction