Fix last character insert bug 97