Fixed an interface bug where the last wrong character would get cleared
at inappropriate times.