Fix bug that happens when use -resume with -start-insert.