Fix last character insert bug 99