another improvement for auto-break while typing