fix "misplaced append mode" bug and continue tests