fix for InsertMode